package com.iris.live.services.data.models;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * Created by HangLiu on 2016/11/28.
 */
public class 月度设定目标ModelPK implements Serializable {
    private String 许可;
    private String 月度;

    @Column(name = "许可")
    @Id
    public String get许可() {
        return 许可;
    }

    public void set许可(String 许可) {
        this.许可 = 许可;
    }

    @Column(name = "月度")
    @Id
    public String get月度() {
        return 月度;
    }

    public void set月度(String 月度) {
        this.月度 = 月度;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        月度设定目标ModelPK that = (月度设定目标ModelPK) o;

        if (许可 != null ? !许可.equals(that.许可) : that.许可 != null) return false;
        if (月度 != null ? !月度.equals(that.月度) : that.月度 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = 许可 != null ? 许可.hashCode() : 0;
        result = 31 * result + (月度 != null ? 月度.hashCode() : 0);
        return result;
    }
}
